package com.cjc.mybase.activity;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

/**
 * 
 ***************************************************** 
 * <hr>
 * <dt><span class="strong">类功能简介:</span></dt>
 * <dd>Coffee</dd>
 * <dt><span class="strong">创建时间:</span></dt>
 * <dd>2015-4-20 上午11:16:29</dd>
 * <dt><span class="strong">公司:</span></dt>
 * <dd>Activity 基类</dd>
 * 
 * @author aa1000777 - Email:aa1000777@qq.com
 ***************************************************** 
 */
public class BaseActivity extends Activity {
	public Context appContext;
	public Context context;
	public int layout;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		context = this;
		appContext = context.getApplicationContext();
		System.out.println("-------------------1----------------");
		initView(savedInstanceState);
		initData(savedInstanceState);
	}

	/**
	 * 
	 ***************************************************** 
	 * 方法简介: 初始化View
	 * 
	 * @param savedInstanceState
	 ***************************************************** 
	 */
	protected void initView(Bundle savedInstanceState) {
		System.out.println("-------------------2----------------");
	}

	/**
	 * 
	 ***************************************************** 
	 * 方法简介: 初始化数据并赋值
	 * 
	 * @param savedInstanceState
	 ***************************************************** 
	 */
	protected void initData(Bundle savedInstanceState) {

	}
}
